<?php

namespace App\Entity;

use Doctrine\ORM\Mapping as ORM;

/**
 * @ORM\Entity(repositoryClass="App\Repository\PayLogRepository")
 */
class PayLog
{
    /**
     * @ORM\Id()
     * @ORM\GeneratedValue()
     * @ORM\Column(type="integer")
     */
    private $id;

    /**
     * @ORM\Column(type="integer")
     */
    private $userId;

    /**
     * @ORM\Column(type="string", length=255, nullable=true)
     */
    private $sn;

    /**
     * @ORM\Column(type="text", nullable=true)
     */
    private $orderInfo;

    /**
     * @ORM\Column(type="float")
     */
    private $money;

    /**
     * @ORM\Column(type="integer", nullable=true)
     */
    private $outId;

    /**
     * @ORM\Column(type="integer", nullable=true)
     */
    private $payType;

    /**
     * @ORM\Column(type="integer")
     */
    private $status;

    /**
     * @ORM\Column(type="integer", nullable=true)
     */
    private $flag;

    /**
     * @ORM\Column(type="string", length=32)
     */
    private $addtime;

    /**
     * @ORM\Column(type="string", length=32, nullable=true)
     */
    private $paytime;

    public function getId()
    {
        return $this->id;
    }

    public function getUserId(): ?int
    {
        return $this->userId;
    }

    public function setUserId(int $userId): self
    {
        $this->userId = $userId;

        return $this;
    }

    public function getSn(): ?string
    {
        return $this->sn;
    }

    public function setSn(?string $sn): self
    {
        $this->sn = $sn;

        return $this;
    }

    public function getOrderInfo(): ?string
    {
        return $this->orderInfo;
    }

    public function setOrderInfo(?string $orderInfo): self
    {
        $this->orderInfo = $orderInfo;

        return $this;
    }

    public function getMoney(): ?float
    {
        return $this->money;
    }

    public function setMoney(float $money): self
    {
        $this->money = $money;

        return $this;
    }

    public function getOutId(): ?int
    {
        return $this->outId;
    }

    public function setOutId(?int $outId): self
    {
        $this->outId = $outId;

        return $this;
    }

    public function getPayType(): ?int
    {
        return $this->payType;
    }

    public function setPayType(?int $payType): self
    {
        $this->payType = $payType;

        return $this;
    }

    public function getStatus(): ?int
    {
        return $this->status;
    }

    public function setStatus(int $status): self
    {
        $this->status = $status;

        return $this;
    }

    public function getFlag(): ?int
    {
        return $this->flag;
    }

    public function setFlag(?int $flag): self
    {
        $this->flag = $flag;

        return $this;
    }

    public function getAddtime(): ?string
    {
        return $this->addtime;
    }

    public function setAddtime(string $addtime): self
    {
        $this->addtime = $addtime;

        return $this;
    }

    public function getPaytime(): ?string
    {
        return $this->paytime;
    }

    public function setPaytime(?string $paytime): self
    {
        $this->paytime = $paytime;

        return $this;
    }
}
